function usecar_apply_click(url){
	$('.use_car_apply').on('click',function(){
		var apply = layer.open({
			type: 1,
			title:false,
			skin: 'layui-layer-rim', //加上边框
			area: ['300px', '200px'], //宽高
			content: `
			<div style='width:100%;height:100%;padding:0 10px'>
			  	<table style='width:100%;'>
			  		
			  		<tr>
				  		<td style='text-align:center'>
							<div class="tpl-table-black-operation">
								<a class="auto_send_order" style='margin-top:30px'>
									<i class="am-icon-pencil"></i>智能化派单
								</a>
							</div>
						</td>
						<td data-id="{$item.car_rental_id}" style='text-align:center'>
							<div class="tpl-table-black-operation">
								<a class="mnul_send_order"  style='margin-top:30px'>
									<i class="am-icon-pencil"></i>手动派单
								</a>
							</div>
						</td>
						<td data-id="{$item.car_rental_id}" style='text-align:center'>
							<div class="tpl-table-black-operation">
								<a class="area_send_order" style='margin-top:30px'>
									<i class="am-icon-pencil"></i> 跨区域派单
								</a>
							</div>
						</td>
					</tr>
				</table>
				<div style='font-size:12px;padding:10px;color:#999'>
					<div>智能化派车:自动锁定就近车辆进行派单</div>
					<div>手动派单:手动选择司机和车辆进行派单</div>
					<div>跨区域派单:平台手动安排其他区域的车辆进行接单，产生派单</div>
				</div>
		  	</div>
		  `
		});
		$('.auto_send_order').on('click',function(){
			layer.close(apply);
			usecar_apply(1,url)
		})
		$('.mnul_send_order').on('click',function(){
			layer.close(apply);
			usecar_apply(2,url)
		})
		$('.area_send_order').on('click',function(){
			layer.close(apply);
			usecar_apply(3)
		})
	})
}
function usecar_apply(type,url){
	if(type==1){
// 		var auto = layer.open({
// 		type: 1,
// 		title:'派单信息',
// 		skin: 'layui-layer-rim', //加上边框
// 		area: ['300px', '300px'], //宽高
// 		content: `
// 			<form class="am-form-inline tpl-form-border-form" action="" data-ajax="1" data-check="1">
// 				<div class='am-u-sm-12' style='margin-bottom:10px'>
// 					<input type='text' placeholder='乘客姓名'/>
// 				</div>
// 				<div class='am-u-sm-12' style='margin-bottom:10px'>
// 					<input type='text' placeholder='乘客电话'/>
// 				</div>
// 				<div class='am-u-sm-12' style='margin-bottom:10px'>
// 					<input type='text' placeholder='用车说明'/>
// 				</div>
// 				<div class='am-u-sm-12' style='margin-bottom:10px'>
// 					<input type='text' placeholder='出发地'/>
// 				</div>
// 				<div class='am-u-sm-12' style='margin-bottom:10px'>
// 					<input type='text' placeholder='目的地'/>
// 				</div>
// 				<div class='am-u-sm-12 '><a class='am-btn am-btn-sm am-btn-primary am-radius'>派单</a></div>
// 			</form>
// 		`
// 		})
		window.location.href=url+"?type=1"
	}else if(type==2){
		window.location.href=url+"?type=2"
//			var auto = layer.open({
//			type: 1,
//			title:'用车说明',
//			skin: 'layui-layer-rim', //加上边框
//			area: ['300px', '200px'], //宽高
//			content: `
//				<form class="am-form-inline tpl-form-border-form" action="" data-ajax="1" data-check="1">
//					<div class='am-u-sm-12' style='margin-bottom:10px'>
//						<input type='text'/>
//					</div>
//					<div class='am-u-sm-12'><a class='am-btn am-btn-sm am-btn-primary am-radius'>下一步</a></div>
//				</form>		
//			`
//			})
	}else{
		var auto = layer.open({
		type: 1,
		title:false,
		skin: 'layui-layer-rim', //加上边框
		area: ['300px', '200px'], //宽高
		content: `该功能未实现`
		})
	}
}

